package com.zzf.uibasetpractice

import android.view.View
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import org.w3c.dom.Text

sealed class MsgViewHolder(view:View):RecyclerView.ViewHolder(view) {

    class LeftViewHolder(view: View):MsgViewHolder(view){
        val leftMsg:TextView = view.findViewById(R.id.leftMsg)
    }

    class RightViewHolder(view: View):MsgViewHolder(view){
        val rightMsg:TextView = view.findViewById(R.id.rightMsg)
    }

}